﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShoppingEntity
{
    public class ShoppingDbContext:DbContext
    {
        public ShoppingDbContext(DbContextOptions<ShoppingDbContext> options) : base(options)
        {
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            
        }


        /// <summary>
        /// 用户表
        /// </summary>
       public DbSet<UserInfo> UserInfo { get; set; }
        /// <summary>
        /// 用户角色表
        /// </summary>
       public DbSet<UserInfo_RoleInfo> UserInfo_RoleInfo { get; set; }
        /// <summary>
        /// 购物车表
        /// </summary>
       public DbSet<ShoppingCart> ShoppingCart { get; set; }
        /// <summary>
        /// 商品销售记录表
        /// </summary>
       public DbSet<SalesrRecord> SalesrRecord { get; set; }
        /// <summary>
        /// 订单表
        /// </summary>
       public DbSet<OrderInfo> OrderInfo { get; set; }
        /// <summary>
        /// 菜单表
        /// </summary>
       public DbSet<MenuInfo> MenuInfo { get; set; }
        /// <summary>
        /// 菜单角色表
        /// </summary>
       public DbSet<MenuInfo_RoleInfo> MenuInfo_RoleInfo { get; set; }
        /// <summary>
        /// 用户评价表
        /// </summary>
       public DbSet<EvaluateInfo> EvaluateInfo { get; set; }
        /// <summary>
        /// 配送表
        /// </summary>
       public DbSet<DistributionInfo> DistributionInfo { get; set; }
        /// <summary>
        /// 商品类型表
        /// </summary>
       public DbSet<CommodityType> CommodityType { get; set; }
        /// <summary>
        /// 商品表
        /// </summary>
       public DbSet<CommodityInfo> CommodityInfo { get; set; }
        /// <summary>
        /// 商品进货表
        /// </summary>
       public DbSet<Commodity_Record> Commodity_Record { get; set; }


        /// <summary>
        /// 角色表
        /// </summary>
        public DbSet<RoleInfo> RoleInfo { get; set; }

        /// <summary>
        /// 文件上传
        /// </summary>
        public DbSet<FileInfo> FileInfo { get; set; }

        /// <summary>
        /// 充值表
        /// </summary>
        public DbSet<Top_up> Top_Up{ get; set; }


        /// <summary>
        /// 退货表
        /// </summary>
        public DbSet<ReturnExchange> ReturnExchange { get; set; }

        /// <summary>
        /// 货物退回信息
        /// </summary>
        public DbSet<Returns> Returns { get; set; }
    }
}
